#include "head.h" 
void writefile_F(Node *phead_F, char *filename_F){
	Node *p = phead_F->next;
	FILE *fp = fopen(filename_F,"wa");
	while(p){
		Faculty *s = (Faculty*)malloc(sizeof(Faculty)); 
		s = (Faculty*)p->data;
		fwrite(s,sizeof(Faculty),1,fp);
		p = p->next; 
	}
	fclose(fp);
	return;
}

void writefile_W(Node *phead_W, char *filename_W){
	Node *p = phead_W->next;
	FILE *fp = fopen(filename_W,"wa");
	while(p){
		Wages *s = (Wages*)malloc(sizeof(Wages)); 
		s = (Wages*)p->data;
		fwrite(s,sizeof(Wages),1,fp);
		p = p->next; 
	}
	fclose(fp);
	return;
}
